home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib8
/
v_10_10
/
1010020b
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-11-01
|
227 b
|
16 lines
Listing 9 -- the file strlen.c
/* strlen function */
#include <string.h>
size_t (strlen)(const char *s)
{ /* find length of s[] */
const char *sc;
for (sc = s; *sc != '\0'; ++sc)
;
return (sc - s);
}